﻿
using InventoryIssue.Dtos;
using InventoryIssue.Infrastructrue.Implement;
using Microsoft.AspNetCore.SignalR;

namespace InventoryIssue.API.Read.Extensions
{
    public class ChatHub : Hub
    {
        private readonly DatabaseContext databaseContext;

        public ChatHub(DatabaseContext databaseContext)
        {
            this.databaseContext = databaseContext;
        }
        public async Task PushStockData(List<StorageStockDto> stockData)
        {
            await Clients.All.SendAsync("ReceiveStockData", stockData);
        }
    }
}
